package org.edu.modules.oa.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.math.BigDecimal;
import java.util.Date;

@Data
// 表名
@TableName("ve_oa_car_jiayou")
// 返回值变成对象
@Accessors(chain = true)
// 重写toString
@EqualsAndHashCode(callSuper = false)
public class VeOaCarJiayouEntity {

    /**id*/
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    //车辆id
    @Excel(name = "车辆id", width = 15)
    @ApiModelProperty(value = "车辆id")
    @TableField(value = "car_id")
    private Long carId;

    //车辆名称
    @Excel(name = "车辆名称", width = 15)
    @ApiModelProperty(value = "车辆名称")
    @TableField(value = "car_name")
    private String carName;

    //加油日期
    @Excel(name = "加油日期", width = 15)
    @ApiModelProperty(value = "加油日期")
    @TableField(fill = FieldFill.INSERT)
    private Date jiayouDate;

    //经办人
    @Excel(name = "经办人", width = 15)
    @ApiModelProperty(value = "经办人")
    @TableField(value = "jingban_user")
    private String jingbanUser;

    //司机
    @Excel(name = "司机", width = 15)
    @ApiModelProperty(value = "司机")
    @TableField(value = "driver_user")
    private String driverUser;

    //加油地点
    @Excel(name = "加油地点", width = 15)
    @ApiModelProperty(value = "加油地点")
    @TableField(value = "jiayou_address")
    private String jiayouAddress;

    //开始油量
    @Excel(name = "开始油量", width = 15)
    @ApiModelProperty(value = "开始油量")
    @TableField(value = "start_fuel")
    private Double startFuel;

    //加油后油量
    @Excel(name = "加油后油量", width = 15)
    @ApiModelProperty(value = "加油后油量")
    @TableField(value = "after_fuel")
    private Double afterFuel;

    //本次加油量
    @Excel(name = "本次加油量", width = 15)
    @ApiModelProperty(value = "本次加油量")
    @TableField(value = "fuel_consumption")
    private Double fuelConsumption;

    //油料单价
    @Excel(name = "油料单价", width = 15)
    @ApiModelProperty(value = "油料单价")
    @TableField(value = "price")
    private Double price;


    //加油总费用
    @Excel(name = "加油总费用", width = 15)
    @ApiModelProperty(value = "加油总费用")
    @TableField(value = "total_price")
    private Double totalPrice;

    //备注说明
    @Excel(name = "备注说明", width = 15)
    @ApiModelProperty(value = "备注说明")
    @TableField(value = "back_info")
    private String backInfo;

    //录入人
    @Excel(name = "录入人", width = 15)
    @ApiModelProperty(value = "录入人")
    @TableField(value = "create_by")
    private String createBy;

    //录入时间
    @Excel(name = "录入时间", width = 15)
    @ApiModelProperty(value = "录入时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    //修改人
    @Excel(name = "修改人", width = 15)
    @ApiModelProperty(value = "修改人")
    @TableField(value = "update_by")
    private String updateBy;

    //修改时间
    @Excel(name = "修改时间", width = 15)
    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    //逻辑删除
    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;


    //终端id
    @Excel(name = "终端id", width = 15)
    @ApiModelProperty(value = "终端id")
    @TableField(value = "terminalId")
    private Integer terminalId;

    //录入人姓名
    @Excel(name = "录入人姓名", width = 15)
    @ApiModelProperty(value = "录入人姓名")
    @TableField(value = "create_by_name")
    private String createByName;

    //修改人姓名
    @Excel(name = "修改人姓名", width = 15)
    @ApiModelProperty(value = "修改人姓名")
    @TableField(value = "update_by_name")
    private String updateByName;
}
